#!/user/bin/python
# -*- coding: utf-8 -*-


import os

#print(os.name)

#print(os.environ.get('PATH'))

#查看当前目录的绝对路径
print(os.path.abspath('.'))

#在某个目录下创建一个新目录，首先把新目录的完整路径表示出来
#os.path.join('F:\workspaces\PythonLearn\src', 'test')

#os.mkdir('F:/workspaces/PythonLearn/src/test')

#os.rmdir('F:/workspaces/PythonLearn/src/test')


print(os.path.split('F:/workspaces/PythonLearn/src/test1/hello.py'))
f = os.path.splitext('F:/workspaces/PythonLearn/src/test1/hello.py')
print(f[1])



